﻿using Qianke.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using static Qianke.Common.Inifile;

namespace MainFrame.Common.Interface
{
    /// <summary>
    /// 插件接口
    /// </summary>
    public interface IPlugin
    {
        /// <summary>
        /// 接口区域名称
        /// </summary>
        string AreaName { get; }

        /// <summary>
        /// 初始化插件
        /// </summary>
        /// <returns></returns>
        ReturnInfo InitPlug(string modelPath,IniApp appConfig);

        /// <summary>
        /// 获取
        /// </summary>
        /// <param name="action"></param>
        /// <returns></returns>
        MethodInfo GetCommondByName(string action);


        /// <summary>
        /// 释放插件
        /// </summary>
        /// <returns></returns>
        ReturnInfo FreePlug();

        /// <summary>
        /// 插件版本
        /// </summary>
        /// <returns></returns>
        string GetVersion();

    }
}
